from django.db import models


# 网站前端个人信息展示
class MyInfo(models.Model):
    name = models.CharField('名称', max_length=20)
    avatar = models.ImageField('头像')
    birthday = models.CharField('生日', max_length=15, blank=True)
    qq = models.CharField('QQ', max_length=13, blank=True)
    wx = models.CharField('微信', max_length=25, blank=True)
    github = models.CharField('github', max_length=50, blank=True)
    gitee = models.CharField('gitee', max_length=50, blank=True)

    class Meta:
        db_table = 'myinfo'
        verbose_name = '个人信息'
        verbose_name_plural = '个人信息'

    def __str__(self):
        return self.name
